
exports.index = function(req, res) {

	if (!req.session.userid && !req.session.username ){
		return res.redirect('/admin/login');
	}

	res.render('admin/index', { title: 'Tomorrow Blog'});
};
